package com.IO.IODemo01;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class A07Input {
    public static void main(String[] args) throws IOException {
        /*
        * 字节输入流循环读取
        * */
        FileInputStream fis = new FileInputStream("untitled\\aaa.txt");
        // 循环读取
        int b;
        while ((b = fis.read()) != -1){
            System.out.print((char)b);
        }
        fis.close();
    }
}
